<%@ include file="/taglibs.jsp"%>

<head>
    <title><fmt:message key="promotionCardList.title"/></title>
    <meta name="heading" content="<fmt:message key='promotionCardList.heading'/>"/>
    <meta name="menu" content="PromotionCardMenu"/>
</head>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editPromotionCard"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<display:table name="promotionCards" class="table" requestURI="" id="promotionCardList" export="true" pagesize="25">
    <display:column property="id" sortable="true" href="editPromotionCard" media="html"
        paramId="id" paramProperty="id" titleKey="promotionCard.id"/>
    <display:column property="id" media="csv excel xml pdf" titleKey="promotionCard.id"/>
    <display:column property="title" sortable="true" titleKey="promotionCard.title"/>
    <display:column property="amount.avalue" sortable="true" titleKey="promotionCard.amount.avalue"/>
    <display:column property="amount.currency" sortable="true" titleKey="promotionCard.amount.currency"/>
    <display:column property="valideFrom" sortable="true" titleKey="promotionCard.valideFrom"/>
    <display:column property="valideTo" sortable="true" titleKey="promotionCard.valideTo"/>
    <display:column property="member.id" sortable="true" titleKey="promotionCard.member.id"/>
    <display:column property="orderAmount" sortable="true" titleKey="promotionCard.orderAmount"/>
    <display:column property="status" sortable="true" titleKey="promotionCard.status"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="promotionCardList.promotionCard"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="promotionCardList.promotionCards"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="promotionCardList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="promotionCardList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="promotionCardList.title"/>.pdf</display:setProperty>
</display:table>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editPromotionCard"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<script type="text/javascript">
    highlightTableRows("promotionCardList");
</script>